package com.camtc.camcenter.security;

import lombok.Setter;
import org.springframework.security.core.GrantedAuthority;

/**
 * @author
 * @date
 */

@Setter
public class MyGrantedAuthority implements GrantedAuthority {

    private static final long serialVersionUID = 1L;

    private String authority;

    public MyGrantedAuthority(String authority) {
        this.authority = authority;
    }

    @Override
    public String getAuthority() {
        return this.authority;
    }
}
